package com.home.jinlanhua.exception;

import com.home.jinlanhua.constant.AllCode;
import lombok.extern.slf4j.Slf4j;

/**
 * 异常抛出类
 */
@Slf4j
public class CastException {
    public static void cast(AllCode allCode) {
        log.error(allCode.toString());
        throw new CustomerException(allCode);
    }
}
